package com.cxl.live.system.dto;

import com.cxl.live.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description: Register
 * @Author: ChenXueLi
 * @Date: 2019-02-05 16:38
 * 你是一段成熟的代码，要学会自己改bug
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "c_register")
public class Register extends BaseDTO {

    @ApiModelProperty(value = "注册id", name = "registerId")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer registerId;

    @ApiModelProperty(value = "账号", name = "account")
    private String account;

    @ApiModelProperty(value = "手机号", name = "phone")
    private String phone;

    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @ApiModelProperty(value = "密码", name = "password")
    private String password;

    @ApiModelProperty(value = "ip地址（用来防止同一ip多次注册）", name = "ip")
    private String ip;

    @ApiModelProperty(value = "验证码", name = "code")
    private String code;

    @ApiModelProperty(value = "激活状态（0未激活 1激活）", name = "uuid")
    private Integer isActive;

    @ApiModelProperty(value = "有效的时间（一般来说是发起注册的半小时为有效时间）", name = "effectiveTime")
    private Date effectiveTime;

}
